package day0414;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String sc = scanner.nextLine();

        if (sc.length() > 0) {
            String firstChar = sc.substring(0, 1).toUpperCase();
            String Chars = sc.substring(1).toLowerCase();
            String result = firstChar + Chars;
            System.out.println("转换后的字符串为：" + result);
        }
    }
}    